Allow empty structs to represent empty Maps.
authorEwan Mellor <ewan@xensource.com>
Sat, 10 Mar 2007 14:16:52 +0000 (14:16 +0000)
committerEwan Mellor <ewan@xensource.com>
Sat, 10 Mar 2007 14:16:52 +0000 (14:16 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/libxen/src/xen_common.c

index 5d72cab177c4898feff88a2d065b9d02eeff024e..b7774c8a27bbbd83a4878dff0ce0c56168507458 100644 (file)
@@ -666,8 +666,7 @@ static void parse_into(xen_session *s, xmlNode *value_node,
     {
         if (!is_container_node(value_node, "value") ||
             value_node->children->type != XML_ELEMENT_NODE ||
-            0 != strcmp((char *)value_node->children->name, "struct") ||
-            value_node->children->children == NULL)
+            0 != strcmp((char *)value_node->children->name, "struct"))
         {
             server_error(s,
                          "Expected Map from the server, but didn't get it");